function ValidateNguoiDung() {
	var username = document.getElementsByName("NguoiDung_UserName").item(0);
	if (username.value == "") {
		alert("Please input UserName");
		return false;
	}
	var password = document.getElementsByName("NguoiDung_Password").item(0);
	if (password.value == "") {
		alert("Please input Password");
		return false;
	}
	var email = document.getElementsByName("NguoiDung_Email").item(0);
	if (email.value == "") {
		alert("Please input Email");
		return false;
	}
	return true;
}

function ValidateThuoc() {
	var tenthuoc = document.getElementsByName("Thuoc_TenThuoc").item(0);
	if (tenthuoc.value == "") {
		alert("Please input TenThuoc");
		return false;
	}
	var hamluong = document.getElementsByName("Thuoc_HamLuong").item(0);
	if (hamluong.value == "") {
		alert("Please input HamLuong");
		return false;
	}
	var donvitinh = document.getElementsByName("Thuoc_DonViTinh").item(0);
	if (donvitinh.value == "") {
		alert("Please input DonViTinh");
		return false;
	}
	var nuocsanxuat = document.getElementsByName("Thuoc_NuocSanXuat").item(0);
	if (nuocsanxuat.value == "") {
		alert("Please input NuocSanXuat");
		return false;
	}
	var handung = document.getElementsByName("Thuoc_HanDung").item(0);
	if (handung.value == "") {
		alert("Please input HanDung");
		return false;
	}
	var ngaysanxuat = document.getElementsByName("Thuoc_NgaySanXuat").item(0);
	if (ngaysanxuat.value == "") {
		alert("Please input NgaySanXuat");
		return false;
	}
	var soluong = document.getElementsByName("Thuoc_SoLuong").item(0);
	if (soluong.value == "") {
		alert("Please input SoLuong");
		return false;
	}
	var dongia = document.getElementsByName("Thuoc_DonGia").item(0);
	if (dongia.value == "") {
		alert("Please input DonGia");
		return false;
	}
	var bhyt = document.getElementsByName("Thuoc_BHYT").item(0);
	if (bhyt.value == "") {
		alert("Please input BHYT");
		return false;
	}
	var hinhanh = document.getElementsByName("Thuoc_HinhAnh").item(0);
	if (hinhanh.value == "") {
		alert("Please choose HinhAnh");
		return false;
	}
	return true;
}

function ValidateLoaiThuoc() {
	var tenloaithuoc = document.getElementsByName("LoaiThuoc_TenLoaiThuoc").item(0);
	if (tenloaithuoc.value == "") {
		alert("Please input TenLoaiThuoc");
		return false;
	}
	return true;
}
